package cn.jzq.mysoul.yourname.mapper;

import cn.jzq.mysoul.yourname.domain.Blog;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * SuperMapper 接口
 * </p>
 *
 * @author jzq
 * @since 2017-09-28
 */
@Mapper
public interface BlogMapper extends BaseMapper<Blog> {

    @Select("SELECT * FROM blog WHERE title = #{title}")
    Blog selectByTitle(@Param("title") String title);
}